package com.fay.designPattern.pattern.create.singleton;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

/**
 * @Title:
 * @Description:
 * @Author Fay Wang
 * @Date 2022/4/3 21:04
 * @Version 1.0
 */
public class Logger {
    private FileWriter writer;

    public Logger() throws IOException {
        File file = new File("/Users/admin/log.txt");
        writer = new FileWriter(file, true);// true表示追加写入
    }

    public void log(String message) {

    }
}
